Page({
  data: {
    visitList: [{
      id: 0,
      workName: "刘功夫",
      peopleNumber: 1,
      url: "../../images/visiter/user.png",
      name: "梁朝伟",
      status: 1,
      description: "商业交流",
      startTime: "2018-7-25 12:00",
      endTime: "2018-7-25 16:00"
    },
    {
      id: 0,
      workName: "刘功夫",
      peopleNumber: 1,
      url: "../../images/visiter/user.png",
      name: "张学有",
      status: 0,
      description: "商业交流",
      startTime: "2018-7-25 12:00",
      endTime: "2018-7-25 16:00"
    },
    {
      id: 0,
      workName: "刘功夫",
      peopleNumber: 1,
      url: "../../images/visiter/user.png",
      name: "刘德华",
      status: -1,
      description: "商业交流",
      startTime: "2018-7-25 12:00",
      endTime: "2018-7-25 16:00"
    }
    ]
  },
  onLoad: function (options) {

  },
  getVisitDetail(e) {
    var index = e.currentTarget.dataset.index
    var item = this.data.visitList[index]
    item = JSON.stringify(item)
    wx.navigateTo({
      url: `../visitRecord/visitRecord?item=${item}`
    })
  }
})